package mypackage2;

import mypackage1.Animal;

public class Cat extends Animal {
    private String sex;
    public void eat(){
        System.out.println("猫喜欢吃鱼");
    }
   public void sleep(){
        System.out.println("猫通常是蜷曲着身子睡觉");
    }
    public void f(){
        System.out.println(weight);
    }
}
